//
//  CustomerInfoModel.m
//  mendianjieke
//
//  Created by 响当当 on 8/6/19.
//  Copyright © 2019 dongzheng. All rights reserved.
//

#import "CustomerInfoModel.h"

@implementation CustomerInfoModel
- (id)initWithDic:(NSDictionary *)dic
{
    if (self = [super init])
    {
        self.buyingCycle = IFNULL(dic[@"buyingCycle"], [NSNumber new]);
        self.gender = IFNULL(dic[@"gender"],  [NSNumber new]);
        self.joinTime = IFNULL(dic[@"joinTime"], [NSNumber new]);
        self.loyalty = IFNULL(dic[@"loyalty"], [NSNumber new]);
        self.maxCost = IFNULL(dic[@"maxCost"], [NSNumber new]);
        self.avgCost = IFNULL(dic[@"avgCost"], [NSNumber new]);
        self.lifeCycle = IFNULL(dic[@"lifeCycle"], @"");
        self.minCost = IFNULL(dic[@"minCost"], [NSNumber new]);
        self.age = IFNULL(dic[@"age"], [NSNumber new]);

    }
    return self;
}

@end
